package com.wzk.travelspringboot.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: WangZiKang
 * @Date: 2025/1/12 20:07
 */
@Data
public class ScenicCommentDTO {

    @NotNull(message = "景区id不能为空")
    private Long scenicId;

    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotBlank(message = "评论内容不能为空")
    @Length(min = 1,message = "评论内容最少一个字符")
    private String content;

}
